const dicData = [{
  label: '开启',
  value: 'true'
}, {
  label: '关闭',
  value: 'false'
}]
export const list = [
//   {
//   key: 'showDebug',
//   commit: 'SET_SHOWDEBUG'
// }, 
{
  key: 'showTheme',
  commit: 'SET_SHOWTHEME'
}, {
  key: 'showColor',
  commit: 'SET_SHOWCOLOR'
}, {
  key: 'showFullScren',
  commit: 'SET_SHOWFULLSCREN'
}, {
  key: 'showCollapse',
  commit: 'SET_SHOWCOLLAPSE'
}]
export const option = (safe) => {
  const _safe = safe
  return {
    submitBtn: false,
    emptyBtn:false,
    column: [
    // {
    //   label: '日志',
    //   prop: 'showDebug',
    //   type: 'switch',
    //   span: 24,
    //   dicData: dicData,
    //   click: ({ column }) => {
    //     _safe.set(column.prop)
    //   }
    // }, 
    {
      label: '主题',
      prop: 'showTheme',
      type: 'switch',
      span: 24,
      dicData: dicData,
      click: ({ column }) => {
        _safe.set(column.prop)
      }
    }, {
      label: '主题色',
      prop: 'showColor',
      type: 'switch',
      span: 24,
      dicData: dicData,
      click: ({ column }) => {
        _safe.set(column.prop)
      }
    }, {
      label: '全屏',
      prop: 'showFullScren',
      type: 'switch',
      span: 24,
      dicData: dicData,
      click: ({ column }) => {
        _safe.set(column.prop)
      }
    }, {
      label: '缩放',
      prop: 'showCollapse',
      type: 'switch',
      span: 24,
      dicData: dicData,
      click: ({ column }) => {
        _safe.set(column.prop)
      }
    }]
  }
}
